using System;
using System.Collections.Generic;
using System.Text;

using ServiceSerieTV.Metier.Entite;
using ServiceSerieTV.Dal;

namespace ServiceSerieTV.Metier.Service
{
    public class SettingsService
    {
        private static SettingsService instance = null;
        private Settings settings = null;

        public Settings Settings
        {
            get { return settings; }
            set { settings = value; }
        }

        private SettingsService()
        {
            settings = new Settings();
        }
        
        /** getInstance [SINGLETON]
         * 
         */
        public static SettingsService getInstance()
        {
            if (null == instance)
                instance = new SettingsService();
            return instance;
        }// getInstance

        public void Update()
        {
            SettingsDal.Update(this.settings);
        }

    }
}
